//
//  ViewController.swift
//  Swift-Tools
//
//  Created by 深圳-周星驰 on 2020/10/15.
//

import UIKit

class ViewController: UIViewController {

    @IBOutlet weak var placherLabel: UILabel!
    override func viewDidLoad() {
        super.viewDidLoad()
        
//        placherLabel.attributedText = "<div class=\"text-box\"><p><img src=\"https://yxythpt.oss-cn-shenzhen.aliyuncs.com/2020-09-30/lADPBFDk8d1MgkLNDuDNGWo_6506_3808 - 副本 - 副本.jpg\" style=\"max-width:100%;\"></p><br></div>".htmlToAttributedString
//        placherLabel.attributedText = NSMutableAttributedString.setTwoStateText("$ 99.00", normalColor: UIColor.blue, normalFontSize: 14, selectedString: ".00", selectedColor: UIColor.red, selectedFontSize: 28)
        view.backgroundColor = .white
    }
    
    @IBAction func presentAction(_ sender: Any) {
        
        let nextVC = NextController()
        let manager = CTSlideInPresentationManager()
//        manager.direction = .top()
//        manager.direction = .left()
        manager.direction = .right()//
        nextVC.modalPresentationStyle = .custom
        nextVC.modalTransitionStyle = .coverVertical
        nextVC.transitioningDelegate = manager
        self.present(nextVC, animated: true, completion: nil)
        
    }
}

